﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MINERP.COM;
namespace MINERP.DAL.OverOrder
{
    /// <summary>
    /// 对工作流程的数据库访问类
    /// </summary>
    public class WorkFlowListDAL : DALBase
    {
        public WorkOrderFlowList GetOneWorkFlowList(int orderProductId, OrderFlowListStatus status)
        {
            //return DataEntites.WorkOrderFlowList.First(p => p.orderInfo.OrderProductId == orderProductId && p.Status == (int)status);
            return DataEntites.WorkOrderFlowList.Where(String.Format("it.orderInfo.OrderProductId={0} and it.Status={1}", orderProductId, (int)status)).FirstOrDefault();
        }
    }
}
